package javabean;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.ArrayList;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultData<E>{
    private int code;
    private String msg;

    private ArrayList<E> data;

    public ResultData() {
    }

    public ResultData(int code, String msg, ArrayList<E> data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public ArrayList<E> getData() {
        return data;
    }
}